package com.sunny.dao.impl;

import javax.annotation.Resource;

import org.apache.ibatis.session.SqlSessionFactory;
import org.springframework.stereotype.Repository;

import com.sunny.dao.IBankDao;
import com.sunny.model.Bank;

import framework.base.BaseIbatis3Dao;

@Repository
public class BankDao extends BaseIbatis3Dao<Bank> implements IBankDao {

	@Resource
	public void setSqlSessionFactory(SqlSessionFactory sqlSessionFactory) {
		super.setSqlSessionFactory(sqlSessionFactory);
	}

	@Override
	public Class<Bank> getEntityClass() {
		 
		return Bank.class;
	}

	@Override
	public Bank find(Integer id) {

		return getSqlSession().selectOne("Bank.find", id);
	}


}
